<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>酒店房型</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>

</head>
<body>

<div id="main_frame">	
	<form id="form" method="post" action="sort.action">
	<div id="pagemenu"><a href="getRoomStyleListByPage.action" title="酒店房型"  >酒店房型</a>|<a href="add.jsp", title="添加房型">添加房型</a>|<a href="javascript:void();" class="selected" title="回收站">回收站</a></div>
	<div class="listbox">
	<table class="listtab"  align="center">
		<thead>
			<tr>
				<th width="42"><span class="mline"><input type="checkbox" name="checkbox" id="checkbox" onclick="selectall(this);" /></span></th>
				<th width="60"><span class="mline">排序</span></th>
				<th width="120"><span class="mline">房型名称</span></th>
				<th width="120"><span class="mline">价格</span></th>
				<th width="100"><span class="mline">房间数</span></th>
				<th width="120"><span class="mline">床型</span></th>
				<th width="120"><span class="mline">图片</span></th>
				<th width="150">管理操作</th>
			</tr>
		</thead>
		<tbody>			
		<s:iterator value="roomStyleList" id="roomStyle" var="x">
		<input type="hidden" class="tx2" name="id" value="${x.id}"/>
			<tr>			
				<td><input type="checkbox" name="checkbox" value="${x.id}" class="ckbox"/></td>
				<td><input type="text" class="tx2" name="sort" value="${x.sort}"/></td>
				<td>${x.name}</td>
				<td>${x.price}</td>
				<td>${x.roomNum}</td>
				<td>${x.bedTypeName}</td>
				<td><img width="45" height="50" src="${pageContext.request.contextPath}/${x.picUrl}" alt="${x.picUrl}" /></td>
				<td>
				
				<a href="findInfoById.action?id=${x.id}" onclick="modify(${x.id});" title="修改酒店房型" class="abg">修改</a>
				<a href="restoreByIds.action?ids=${x.id}"  title="还原" onclick="return restore_confirm();" class="abg">还原 </a>
				<a href="completeDeleteByIds.action?ids=${x.id}"  title="删除" onclick="return delete_confirm();" class="abg">删除 </a> </td>
			</tr>
		</s:iterator>
		</tbody>
	</table>
	</div>
	</form>
</div>
<div id="bottombar">
	<div class="fl">
	<span><a onclick="selectall(true);" href="javascript:void(0);">全选</a>/<a onclick="selectall(false);" href="javascript:void(0);">取消</a></span>
	<a href="javascript:void(0);" onclick="remove('completeDeleteByIds.action');" title="删除" class="addsource">删除</a>
	<a href="javascript:void(0);" onclick="restore('restoreByIds.action');" title="还原" class="addsource">还原</a>
	<a href="javascript:void(0);"  onclick="$('#form').submit();"  title="排序" class="addsource">排序</a>
	</div>	
	<div class="fr listpage">${pagination}</div>
</div>
</body>
</html>